package com.yanqu.road.entity.activity.zhenhuan;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

import java.util.HashMap;
import java.util.Map;

@FieldTypeAnnotation(tableName = "t_u_zhenhuan_promotion", desc = "游戏服甄嬛传晋级数据")
public class GameZhenHuanPromotionData extends DataObject {
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id", isIndex = true)
    private int activityId;
    @FieldTypeAnnotation(select = true, update = true, desc = "活动id")
    private int childType;
    @FieldTypeAnnotation(desc = "晋级名单")
    private Map<Long, ZhenHuanPromotionInfo> promotionInfoMap = new HashMap<>();

    public GameZhenHuanPromotionData() {
    }

    public GameZhenHuanPromotionData(int activityId, int childType) {
        this.activityId = activityId;
        this.childType = childType;
        setInsertOption();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getChildType() {
        return childType;
    }

    public void setChildType(int childType) {
        this.childType = childType;
    }

    public Map<Long, ZhenHuanPromotionInfo> getPromotionInfoMap() {
        return promotionInfoMap;
    }

    public void setPromotionInfoMap(Map<Long, ZhenHuanPromotionInfo> promotionInfoMap) {
        this.promotionInfoMap = promotionInfoMap;
        setUpdateOption();
    }
}
